import request from '@/utils/request';

//备份历史查询
export async function backupHistoryList(params = {}) {
  return request('/proxyapi/backupHistory/list', {
    method: 'GET',
    params: {
      ...params,
    },
  });
}

// 执行备份操作
export async function backupHistoryBackup(data = {}) {
  return request('/proxyapi/backupHistory/backUp', {
    method: 'POST',
    data: data,
    requestType: "form",
  });
}

// 执行备份恢复操作
export async function backupHistoryRestore(data = {}) {
  return request('/proxyapi/backupHistory/restore', {
    method: 'POST',
    data: data,
    requestType: "form",
  });
}
